@import '../../style/themes';
@import '../../style/mixins';

.x-anchor {
  @include reset-component();
  position: relative;

  &-show-background &_bar {
    background: rgba($anhor-rail-bar-color, .2);
  }
  &-rail {
    padding-left: 4px;
  }
  &-block &_bar {
    &::after {
      display: none;
    }
  }

  &_rail {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: $anhor-rail-color;
  }
  &_bar {
    position: absolute;
    left: 0;
    transform: translateY(-50%);
    transition: top .15s, width .15s, height .15s;
    &::after {
      content: '';
      display: block;
      width: 4px;
      height: 100%;
      background: $anhor-rail-bar-color;
    }
  }

}